<html>
    <head>
		{% if title %}
			<title>{{ title }} - Microblog</title>
		{% else %}
			<title>Welcome to Microblog!</title>
		{% endif %}
    </head>
    <body>
    <div>
      <div class="container mt-5">
    <!-- Flash messages -->
    {% with messages = get_flashed_messages() %}
        {% if messages %}
            <div class="alert alert-info" role="alert">
                {% for message in messages %}
                    <p>{{ message }}</p>
                {% endfor %}
            </div>
        {% endif %}
    {% endwith %}
    </div>
        Microblog:
       <a href="{{ url_for('index') }}">Home</a>
			{% if current_user.is_anonymous %}
				<a href="{{ url_for('login') }}">Login</a>
			{% else %}
				<a href="{{ url_for('user', username=current_user.username) }}">Profile</a>
				<a href="{{ url_for('logout') }}">Logout</a>
			{% endif %}
    </div>
    <hr>
       {% block content %}
       {% endblock %}
    </body>
</html>